<template>
	<view class="container">
		<view class="card" v-for="(item,index) in orderList" :key="index">
			<view class="card_top">
				<view class="card_title">
					{{item.use_times}}
				</view>
			</view>
			<view class="card_content">
				<view class="cell">
					<view class="label"> 使用门店 </view>
					<view class="value"> {{item.shopname}} </view>
				</view>
				<view class="cell">
					<view class="label"> 项目说明 </view>
					<view class="value"> {{item.goods_name}} </view>
				</view>
				<view class="cell">
					<view class="label"> 套餐剩余次数 </view>
					<view class="value"> {{item.yu_num}} </view>
				</view>
				<view class="cell">
					<view class="label"> 使用次数 </view>
					<view class="value"> {{item.use_num}} </view>
				</view>
				<view class="cell">
					<view class="label"> 使用结束时间 </view>
					<view class="value"> {{item.use_end_time}} </view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {getServiceOrderRecord} from '../../../api/api.js'
	export default {
		data() {
			return {
				id:'',
				 //订单全部信息
				orderList:{} ,
			}
		},
		onLoad(options) {
			this.id = options.id
			this.getServiceOrderRecord()
		},
		methods:{
			getServiceOrderRecord(){
				getServiceOrderRecord({order_id:this.id}).then(res=>{
					this.orderList = res.data.data
				})
			},
		}
	}
</script>

<style scoped lang="scss">
.container {
	min-height: calc(100vh - 88rpx);
	width: 100%;
	background-color: #F8F8F8;
	padding: 0 24rpx;
}


.card {
	background: #FFFFFF;
	border-radius: 16rpx;
	padding: 20rpx 30rpx;
	margin-top: 24rpx;
	.card_top {
		height: 82rpx;
		padding-bottom: 20rpx;
		margin-bottom: 10rpx;
		border-bottom: 2rpx solid #E7E7E7;
		display: flex;
		align-items: center;
		.card_title {
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 700;
			color: #222222;
		}
		
	}
	.card_content {
		.cell {
			display: flex;
			// align-items: center;
			font-size: 26rpx;
			line-height: 36rpx;
			padding: 10rpx 0;
			.label {
				flex: 1;
				color: #333333;
			}
			.value {
				flex: 2;
				text-align: right;
				color: #222222;
			}
		}
	}
}

</style>
